package com.example.aussiehealthhelper;

public class Drug {
    private int id;
    private String nameCN;
    private String nameEN;
    private String indication;
    private String indicationCategory;
    private String adverseReaction;
    private String similarDrugs;
    private String dosage;
    private String note;
    private boolean isFavorite;

    // 构造函数
    public Drug(int id, String nameCN, String nameEN, String indication, String indicationCategory,
                String adverseReaction, String similarDrugs, String dosage, String note, boolean isFavorite) {
        this.id = id;
        this.nameCN = nameCN;
        this.nameEN = nameEN;
        this.indication = indication;
        this.indicationCategory = indicationCategory;
        this.adverseReaction = adverseReaction;
        this.similarDrugs = similarDrugs;
        this.dosage = dosage;
        this.note = note;
        this.isFavorite = isFavorite;
    }

    // Getter 和 Setter
    public int getId() {
        return id;
    }

    public String getNameCN() {
        return nameCN;
    }

    public String getNameEN() {
        return nameEN;
    }

    public String getIndication() {
        return indication;
    }

    public String getIndicationCategory() {  // 新增方法
        return indicationCategory;
    }

    public String getAdverseReaction() {
        return adverseReaction;
    }

    public String getSimilarDrugs() {
        return similarDrugs;
    }

    public String getDosage() {
        return dosage;
    }

    public String getNote() {
        return note;
    }

    public boolean getIsFavorite() {
        return isFavorite;
    }

    // Setter
    public void setId(int id) {
        this.id = id;
    }

    public void setNameCN(String nameCN) {
        this.nameCN = nameCN;
    }

    public void setNameEN(String nameEN) {
        this.nameEN = nameEN;
    }

    public void setIndication(String indication) {
        this.indication = indication;
    }

    public void setIndicationCategory(String indicationCategory) {  // 新增方法
        this.indicationCategory = indicationCategory;
    }

    public void setAdverseReaction(String adverseReaction) {
        this.adverseReaction = adverseReaction;
    }

    public void setSimilarDrugs(String similarDrugs) {
        this.similarDrugs = similarDrugs;
    }

    public void setDosage(String dosage) {
        this.dosage = dosage;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public void setIsFavorite(boolean isFavorite) {
        this.isFavorite = isFavorite;
    }
}